package com.bdqn.t330.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bdqn.t330.entity.Right;
import com.bdqn.t330.entity.User;
import com.bdqn.t330.entity.UserInfoVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

public interface UserService extends IService<User>, UserDetailsService {

    //根据用户名模糊查询用户列表信息
    public List<User> findByUsrNameBiz(String userName);

    //根据用户名查询用户信息
    public User selectOneUserNameBiz(String userName);

    IPage selectUserPage(Page<User> page, QueryWrapper<User> queryWrapper);

    //根据用户名获取用户权限列表
    public List<Right> findRightByUsrName(String usrName);


    //根据用户名获取用户详细信息
    public UserInfoVO getByUserNameBiz(String usrName);
}
